package com.ciaojian.core.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ciaojian.core.mapper.StoreDinnerTimeMapper;
import com.ciaojian.core.model.StoreDinnerTime;

/**
 * @author oxiny
 */
public class StoreDinnerTimeService extends ServiceImpl<StoreDinnerTimeMapper, StoreDinnerTime> {

    /**
     * 查询门店就餐时间
     *
     * @param storeId 门店ID
     * @return /
     */
    public StoreDinnerTime getByStoreId(Integer storeId) {
        return this.lambdaQuery()
                .eq(StoreDinnerTime::getStoreId, storeId)
                .one();
    }


}
